package org.wangblue.invoker;

import org.wangblue.command.Command;

/**
 * @Description: 服务员
 * @Author: WangBlue
 * @Create: 2024-09-24 10:30
 * @Version: 1.0
 **/

public class Waiter {
    private Command command;
    // 设置订单
    public void setOrder(Command command) {
        this.command = command;
    }

    // 执行通知
    public void notifyCommand(){
        command.execute();
    }
}
